<?php

class m120619_131649_create_holiday extends EDbMigration {

	public function safeUp() {
		$columns = array(
			'id'=>'pk',
			'date'=>'date',
			'name'=>'varchar(128)',
			'createdAt'=>'datetime',
			'updatedAt'=>'datetime',
			'createdBy'=>'integer',
			'updatedBy'=>'integer',
		);
		$this->createTable('holidays', $columns);
	}

	public function safeDown() {
		$this->dropTable('holidays');
	}

}